import { CATEGORY_TYPES } from '@/typings/home';
import axios from '.';

// 声明获取轮播图接口
export function getSliders<T>() {
    return axios.get<T,T>('/slider/list');
}

// 获取课程接口
export function getLesson<T>(category: CATEGORY_TYPES, offset: number = 0, limit: number = 5) {
    return axios.get<T,T>(`/lesson/list?category=${category}&offset=${offset}&limit=${limit}`)
}